#!/usr/bin/env python
# encoding: utf-8
'''
@author: 王震
@license: 四川凡狼科技有限公司
@contact: 2668985108@qq.com
@file: tips.py
@time: 2021/10/1 8:58 上午
@desc:
'''

tips = {
    'success': 0,  # 操作成功
    'existence': 1,  # 无法执行重复的提交操作
    'parameter_error': 2,  # 参数有误
    'noResult': 3,  # 无查询结果
    'exists': 4,  # 用户已存在无法重新注册
    "exist": 5,  # 用户不存在
    'wrong': 6,  # 密码有误
    'logged': 7,  # 没有登录
    'no_curriculum': 8,  # 课程不存在
    'content_Type': 9,  # 必须以json的形式传递数据
    'only_admin_create': 10,  # 无权限创建用户
    'System_error': 11,  # 系统错误
    "have_no_right": 12,  # 无权删除在线上的课程
    'not_exist': 13,  # 资源标签不存在
    "added": 14,  # 已经点赞无法继续点赞
    "collection": 15,  # 已加入收藏无法重复添加
}

tipsText = {
    'success': "Operation succeeded",
    'existence': 'The created %s already exists and cannot be created repeatedly',
    'parameter_error': 'parameter error',
    'noResult': 'no result',
    'exists': 'User already exists, unable to register again',
    'exist': "user does not exist",
    'wrong': 'Wrong password',
    'logged': "not logged in",
    'no_curriculum': 'no curriculum',
    'content_Type': "The method must pass data in JSON",
    'only_admin_create': 'Only super administrators can create users',
    'System_error': 'System error',
    "have_no_right": "You do not have permission to delete online courses",
    "not_exist": "Resource type does not exist",
    "added": "Like already, can't continue to like",
    'collection': "Has been added to the collection, cannot be added repeatedly"
}
